package com.lyluly.coursemgmt.servicemodule.model;

import java.util.Date;

public class Course {
    private String courseName;

    private String syllabus;

    private String courseware;

    private Date createtime;

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName == null ? null : courseName.trim();
    }

    public String getSyllabus() {
        return syllabus;
    }

    public void setSyllabus(String syllabus) {
        this.syllabus = syllabus == null ? null : syllabus.trim();
    }

    public String getCourseware() {
        return courseware;
    }

    public void setCourseware(String courseware) {
        this.courseware = courseware == null ? null : courseware.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", courseName=").append(courseName);
        sb.append(", syllabus=").append(syllabus);
        sb.append(", courseware=").append(courseware);
        sb.append(", createtime=").append(createtime);
        sb.append("]");
        return sb.toString();
    }
}